export const adminRouter = {
    name: 'layout',
    path: '/',

    //通用母版页
    component: () =>
        import('@views/layout'),

    //功能页面路由
    children: [{
        name: 'home',
        path: 'home',
        meta: {
            title: '总览',
            icon: 'el-icon-house'
        },
        component: () =>
            import('@light-app/views/home/index')
    },
    {
        name: 'project',
        path: 'project',
        meta: {
            title: '项目',
            icon: 'el-icon-office-building'
        },
        children: [{
            name: 'allProject',
            path: 'allProject',
            meta: {
                title: '项目总览',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/project/allProject')
        },
        {
            name: 'mineproject',
            path: 'mineproject',
            meta: {
                title: '我的项目',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/project/allProject')
        }
            // {
            //     name: 'milestone',
            //     path: 'milestone',
            //     meta: {
            //         title: '项目里程碑',
            //         icon: 'icon-home'
            //     },
            //     component: () =>
            //         import('@light-app/views/project/milestone')
            // }
        ]
    },
    {
        name: 'work',
        path: 'work',
        meta: {
            title: '工作',
            icon: 'el-icon-suitcase'
        },
        children: [{
            name: 'allWeekly',
            path: 'allWeekly',
            meta: {
                title: '周报总览',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/works/allWeekly')
        }, {
            name: 'weekly',
            path: 'weekly',
            meta: {
                title: '周报',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/works/weekly')
        }, {
            name: 'monthPlan',
            path: 'monthPlan',
            meta: {
                title: '月计划',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/works/monthPlan')
        }]
    },
    // {
    //     name: 'performance',
    //     path: 'performance',
    //     meta: {
    //         title: '绩效',
    //         icon: 'el-icon-document-checked',
    //     },
    //     component: () =>
    //         import('@light-app/views/dashboard'),
    // },
    {
        name: 'install',
        path: 'install',
        meta: {
            title: '设置',
            icon: 'el-icon-setting'
        },
        children: [{
            name: 'projectClassic',
            path: 'projectClassic',
            meta: {
                title: '项目类别',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/install/projectClassic')
        }, {
            name: 'projectStage',
            path: 'projectStage',
            meta: {
                title: '项目阶段',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/install/projectStage')
        }, {
            name: 'projectDispose',
            path: 'projectDispose',
            meta: {
                title: '类别阶段配置',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/install/projectDispose')
        }, {
            name: 'setManage',
            path: 'setManage',
            meta: {
                title: '管理员设置',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/install/setManage')
        }]
    }
    ]
}

export const perRouter = {
    name: 'layout',
    path: '/',

    //通用母版页
    component: () =>
        import('@views/layout'),

    //功能页面路由
    children: [{
        name: 'home',
        path: 'home',
        meta: {
            title: '总览',
            icon: 'el-icon-house'
        },
        component: () =>
            import('@light-app/views/home/index')
    },
    {
        name: 'project',
        path: 'project',
        meta: {
            title: '项目',
            icon: 'el-icon-office-building'
        },
        children: [
            {
                name: 'mineproject',
                path: 'mineproject',
                meta: {
                    title: '我的项目',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/project/allProject')
            }
        ]
    },
    {
        name: 'work',
        path: 'work',
        meta: {
            title: '工作',
            icon: 'el-icon-suitcase'
        },
        children: [{
            name: 'weekly',
            path: 'weekly',
            meta: {
                title: '周报',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/works/weekly')
        }, {
            name: 'monthPlan',
            path: 'monthPlan',
            meta: {
                title: '月计划',
                icon: 'icon-home'
            },
            component: () =>
                import('@light-app/views/works/monthPlan')
        }]
    }
    ]
}

export default { adminRouter, perRouter }